package com.iyundao.io.mapper;

import com.iyundao.io.model.GiftImage;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.InsertProvider;
import org.springframework.stereotype.Repository;

@Repository
public interface GiftImageMapper {
    @Insert({
        "insert into giftimage (id, giftid, ",
        "giftimageurl)",
        "values (#{id,jdbcType=INTEGER}, #{giftid,jdbcType=INTEGER}, ",
        "#{giftimageurl,jdbcType=VARCHAR})"
    })
    int insert(GiftImage record);

    @InsertProvider(type=GiftImageSqlProvider.class, method="insertSelective")
    int insertSelective(GiftImage record);
}